import java.awt.*;
import javax.swing.*;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Owner
 */
public class background {
/* the background class needs:
 *  - an imageicon
 *  - a getimage icon
 *  - a name
 *  - a symbol
 *  - a tostring 
 */
    ImageIcon icon;
    String myName;
    char mySym;
    boolean walkOn;
  
    public background(ImageIcon myIcon, String name, boolean walkable)
    {
        icon = myIcon;
        myName = name;
        walkOn = walkable;
        //mySym = '\\';
    }
   
    public ImageIcon getImage()
    { return icon; }
    public void setImage(ImageIcon newImage)
    {
        icon = newImage;
    }
    public void setName(String name) { myName = name; }
    public String getName()
    {
        return myName;
    }
    @Override
    public String toString()
    { return myName; }
    public void setSym(char sym)
    {
        mySym=sym;
    }
    public char getSym(){ return mySym;}
    public void setWalkOn(boolean walkable){ walkOn = walkable;}
    public boolean getWalkOn(){ return walkOn;}
    
     
    
}
